<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Hardware Abstraction Layer (HAL)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="logo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Hardware Abstraction Layer (HAL)</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('group__group__hal__impl__pdmpcm.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">PDM/PCM (Pulse Density Modulation to Pulse Code Modulation Converter)<div class="ingroups"><a class="el" href="group__group__hal__impl.html">CAT1 Implementation Specific</a></div></div></div>
</div><!--header-->
<div class="contents">
<p >The CAT1A PDM/PCM Supports the following conversion parameters: </p>
<ul>
<li>
Mode: Mono Left, Mono Right, Stereo </li>
<li>
Word Length: 16/18/20/24 bits </li>
<li>
Sampling Rate: up to 48kHz </li>
<li>
Left/Right Gain Amplifier: -12dB to +10.5dB in 1.5dB steps. </li>
</ul>
<dl class="section note"><dt>Note</dt><dd>If the PDM/PCM block is initialized using the <a class="el" href="group__group__hal__pdmpcm.html#gac2baa0d5162498463cc5228e0ab70909">cyhal_pdm_pcm_init</a> function and the "channel recording swap" option is selected, the <a class="el" href="group__group__hal__pdmpcm.html#ggac81a68ee166ff48752095f82e6852565a9b6dc0fbdb5ff94c50d3ea447b2e7729">CYHAL_PDM_PCM_MODE_LEFT</a> and <a class="el" href="group__group__hal__pdmpcm.html#ggac81a68ee166ff48752095f82e6852565a10f63e46718c10aefbc64bfda8b82cfd">CYHAL_PDM_PCM_MODE_RIGHT</a> enum members refer to the origin left and right channels before the swap is applied.</dd></dl>
<p>The CAT1B PDM/PCM Supports the following conversion parameters:</p><ul>
<li>
Mode: Mono Left, Mono Right, Stereo </li>
<li>
Word Length: 8/10/12/14/16/18/20/24/32 bits </li>
<li>
Sampling Rate: up to 48kHz </li>
<li>
Decimation rates: 32, 64, 96 or 128 </li>
<li>
Left/Right Gain Amplifier: Supported gain values are given by the formula <code>dB = 20 * log10(13921 / 2^x)</code> where <code>x</code> is an integer between 0 and 31 inclusive. This provides a range of +82.5 to -103.5 dB, in approximately 5 dB steps. The requested gain will rounded to the nearest supported value. </li>
</ul>
<dl class="section note"><dt>Note</dt><dd>On CAT1B devices, if stereo mode is selected, the length of all read operations should be a multiple of two so that the left and right channels are read together.</dd>
<dd>
On CAT1B devices, when multiple channels are configured in a configurator, each channel should be initialized via a separate call to <a class="el" href="group__group__hal__pdmpcm.html#gadeb410fdf58134fa1f692e6aeab69708">cyhal_pdm_pcm_init_cfg</a>. </dd></dl>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Hardware Abstraction Layer (HAL)</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
